const router = require('koa-router')({prefix: '/reservation'});
const controller = require('controller/reservation.js');

/**
 * @api {get} /reservation/list 预约列表
 * @apiVersion 1.0.0
 * @apiName list
 * @apiGroup 预约模块
 * @apiHeader {String} Authorization 用户授权token
 * @apiSampleRequest /reservation/list
 * @apiSuccessExample {json} 请求成功：
 * {}
 */
router.get('/list', controller.list);

/**
 * @api {delete} /reservation/delete 删除车位
 * @apiVersion 1.0.0
 * @apiName delete
 * @apiGroup 预约模块
 * @apiHeader {String} Authorization 用户授权token
 * @apiSampleRequest /reservation/delete
 * @apiSuccessExample {json} 请求成功：
 * {}
 */
router.delete('/delete', controller.delete);

module.exports = router;
